import 'package:event_bus/event_bus.dart';

/// 事件总线
///
/// @example
/// ```
/// late StreamSubscription<WriteTextRightToLeft> listener;
///
/// // 在 initState 中初始化
/// listener = eventBus.on<EventName>().listen((event) {});
///
/// // 在 dispose 中取消监听
/// listener.cancel();
/// ```
EventBus eventBus = EventBus();

class EventName {
  EventName();
}
